package com.bootdo.clouddo.dao.book;

import com.bootdo.clouddo.dao.BaseMapper;
import com.bootdo.clouddo.domain.book.BookCatalogue;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BookCatalogueMapper extends BaseMapper<BookCatalogue> {

    boolean exists(@Param("bookId") Long bookId, @Param("siteId") int siteId, @Param("url") String url);

    List<BookCatalogue> findByBook(@Param("bookId") Long bookId, @Param("siteId") int siteId);

}